package com.cn.wanxi.service;

import com.cn.wanxi.model.NewsModel;

import java.util.List;

public interface INewsService {

    int addNews(NewsModel newsModel);

    int deleteNews(int id);

    int editNews(NewsModel newsModel);

    List<NewsModel> getNewsList();

    NewsModel getNews(int id);

    List<NewsModel> getNewsList(int page,int size);

    List<NewsModel> getNewsList(int page,int size,String sort);

    List<NewsModel> searchNews(String sql);

    long getNewsCount();
}
